home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Multicollection 5 Soft 1997
/
Multicollection 5 soft 1997 (Win NT 4.0 Work, Serv, OS2).iso
/
nt40_wrk
/
classes.zi_
/
CLASSES.ZIP
/
sun
/
misc
/
ConditionLock.class
(
.txt
)
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Java Class File
|
1996-08-23
|
620 b
|
26 lines
package sun.misc;
public final class ConditionLock extends Lock {
private int state;
public ConditionLock() {
}
public ConditionLock(int var1) {
this.state = var1;
}
public synchronized void lockWhen(int var1) throws InterruptedException {
while(this.state != var1) {
this.wait();
}
((Lock)this).lock();
}
public synchronized void unlockWith(int var1) {
this.state = var1;
((Lock)this).unlock();
}
}